import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import dayjs from 'dayjs'
Vue.config.productionTip = false
Vue.directive('gdrag',{
    inserted(el,bingding,vnode,prevnode){
        console.log(el);

    }
})
Vue.directive('focus',{
    inserted(el,bingding,vnode,prevnode){
        console.log(el);
        el.focus()

    }
})

// 全局过滤器
Vue.filter('filTime',(val)=>{
//    val 就是要过滤的数据
  return dayjs(val).format('YYYY:MM:DD hh:mm:ss')
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
